<template>
    <ul class="list-group">
        <li class="list-group-item">新闻的id:{{ route.params.id }}</li>
        <li class="list-group-item">新闻的内容:{{ route.query.content }}</li>
    </ul>
</template>

<script lang="ts">
import { defineComponent } from "vue"
export default defineComponent({
    name: 'NewsDetail',
})
</script>

<script lang="ts" setup>
import {useRoute} from 'vue-router'
const route = useRoute()
console.log(route);

</script>

<style scoped></style>